package com.xuecheng.managecms.controller;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.managecms.service.SysDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jl
 * @description
 * @date 2019-08-28 11:31
 */
@RestController
@RequestMapping("/sys")
public class SysDictionaryController {
    @Autowired
    private SysDictionaryService sysDictionaryService;

    @GetMapping("/dictionary/get/{dType}")
    public SysDictionary findByDType(@PathVariable("dType") String dType) {
        return sysDictionaryService.findByDType(dType);
    }
}
